/**
 * Created by xuzhihan on 17/3/12.
 */
import java.util.Scanner;
class  cashcard {
    private  String number;
    private  int balance;
    private  int bonus;
    void store (int money){
        if(money>0){
            this.balance+=money;
            if(money>=1000){
                this.bonus++;
            }
        }
        else{
            System.out.printf("it's wrong");
        }
    }
    int getBalance(){
        return balance;
    }
    int getBonus(){
        return  bonus;
    }
    String getNumber(){
        return number;
    }
}
public class pri {
    public static void main(String[] args) {
        Scanner scanner =new Scanner(System.in);
        cashcard card1=new cashcard();
        cashcard card2=new cashcard();
        System.out.printf("明细(%s,%d，%d)%n",card1.getNumber(),card1.getBalance(),card1.getBonus());
        System.out.printf("明细(%s,%d，%d)%n",card2.getNumber(),card2.getBalance(),card1.getBonus());
    }
}
